<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
         ul{
            list-style: none;
            position: relative;
            width: 200px;
            height: 200px;
            margin:100px  auto;

            transform-style: preserve-3d;

            transform:rotate3d(1,1,0,-30deg);
        }

        ul  li {
            width: 200px;
            height: 200px;
            position: absolute;
            top: 0;
            left: 0;
        }

        ul  li:nth-child(1){
            transform: translateZ(100px);
            background-color: red;
        }

        ul  li:nth-child(2){
            background-color: yellow;
            transform: translateZ(-100px) rotateY(180deg);
        }

        ul  li:nth-child(3){
            background-color: pink;
            transform: translateX(-100px) rotateY(-90deg);
        }

        ul  li:nth-child(4){
            background-color: blue;
            transform: translateX(100px) rotateY(90deg);
        }

        ul  li:nth-child(5){
            background-color: skyblue;
            transform: translateY(-100px) rotateX(90deg);
        }

        ul  li:nth-child(6){
            background-color: purple;
            transform: translateY(100px) rotateX(-90deg);
        }
    </style>
</head>
<body>
    <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
        <li>6</li>
    </ul>
</body>
</html>